From: Ying-Chun Liu (PaulLiu) Date: Fri, 6 Jul 2018 15:20:08 +0000 (+0800) Subject: tools/cert_create: fix makefile to build build_msg.o by HOSTCC X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=aba0c7ae8e72176ab8e12b8da1c29863afd2e62f;p=project%2Fbcm63xx%2Fatf.git tools/cert_create: fix makefile to build build_msg.o by HOSTCC Previously build_msg.o is built by CC. It causes FTBFS when CC is not equal to HOSTCC. Signed-off-by: Ying-Chun Liu (PaulLiu) --- diff --git a/tools/cert_create/Makefile b/tools/cert_create/Makefile index 8a1958ff..7b10e3e3 100644 --- a/tools/cert_create/Makefile +++ b/tools/cert_create/Makefile @@ -75,7 +75,7 @@ ${BINARY}: ${OBJECTS} Makefile @echo " LD $@" @echo 'const char build_msg[] = "Built : "__TIME__", "__DATE__; \ const char platform_msg[] = "${PLAT_MSG}";' | \ - ${CC} -c ${CFLAGS} -xc - -o src/build_msg.o + ${HOSTCC} -c ${CFLAGS} -xc - -o src/build_msg.o ${Q}${HOSTCC} src/build_msg.o ${OBJECTS} ${LIB_DIR} ${LIB} -o $@ %.o: %.c